package com.ybwh.springboot2.okadmin.ftl;


import com.ybwh.springboot2.common.annotation.LoginRequired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("/")
public class LoginPageController {



    @GetMapping(value = "/login")
    public ModelAndView login()  {

        return new ModelAndView("login");
    }


    @LoginRequired
    @GetMapping(value = "/index")
    public ModelAndView index()  {

        return new ModelAndView("index");
    }




}
